class Task21:
    def run(self, array):
        i = -1
        for j in range(len(array)):
            if array[j] % 2 == 1:
                i += 1
                array[i], array[j] = array[j], array[i]
